package com.yexiao.cofe.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yexiao.cofe.business.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where user_id = #{userId}")
    User selectByUID(String userId);

    @Select(("select * from user where phone = #{phone}"))
    User selectByPhone(String phone);

    User selectByIdOrPhone(String uid, String phone);
}
